<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>IDA SDK: Find UDT member flags</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">IDA SDK
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="files.html"><span>Header&#160;Files</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a>  </div>
  <div class="headertitle">
<div class="title">Find UDT member flags</div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>used by 'strmem_flags' parameter to <a class="el" href="classtinfo__t.html#a12ba671c8454d6ad6ec19e74a11ccd58" title="BTF_STRUCT,BTF_UNION: Find a udt member. ">find_udt_member()</a> </p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:gaf528bfd6d968b17ae57aee1dee443c29"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaf528bfd6d968b17ae57aee1dee443c29"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>STRMEM_MASK</b>&#160;&#160;&#160;0x0007</td></tr>
<tr class="separator:gaf528bfd6d968b17ae57aee1dee443c29"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gafc7e55c621c65b2a81792e39a67d75b2"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_t_r_m_e_m__.html#gafc7e55c621c65b2a81792e39a67d75b2">STRMEM_OFFSET</a>&#160;&#160;&#160;0x0000</td></tr>
<tr class="memdesc:gafc7e55c621c65b2a81792e39a67d75b2"><td class="mdescLeft">&#160;</td><td class="mdescRight">get member by offset  <a href="#gafc7e55c621c65b2a81792e39a67d75b2">More...</a><br /></td></tr>
<tr class="separator:gafc7e55c621c65b2a81792e39a67d75b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaad91f2151cfd8e41e7f937287bf18f56"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_t_r_m_e_m__.html#gaad91f2151cfd8e41e7f937287bf18f56">STRMEM_INDEX</a>&#160;&#160;&#160;0x0001</td></tr>
<tr class="memdesc:gaad91f2151cfd8e41e7f937287bf18f56"><td class="mdescLeft">&#160;</td><td class="mdescRight">get member by number  <a href="#gaad91f2151cfd8e41e7f937287bf18f56">More...</a><br /></td></tr>
<tr class="separator:gaad91f2151cfd8e41e7f937287bf18f56"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0b5ba39c4308bbc445aaa8bfc5315bfd"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_t_r_m_e_m__.html#ga0b5ba39c4308bbc445aaa8bfc5315bfd">STRMEM_AUTO</a>&#160;&#160;&#160;0x0002</td></tr>
<tr class="memdesc:ga0b5ba39c4308bbc445aaa8bfc5315bfd"><td class="mdescLeft">&#160;</td><td class="mdescRight">get member by offset if struct, or get member by index if union  <a href="#ga0b5ba39c4308bbc445aaa8bfc5315bfd">More...</a><br /></td></tr>
<tr class="separator:ga0b5ba39c4308bbc445aaa8bfc5315bfd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8c04aa29f158d3544957d5bf9513115a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_t_r_m_e_m__.html#ga8c04aa29f158d3544957d5bf9513115a">STRMEM_NAME</a>&#160;&#160;&#160;0x0003</td></tr>
<tr class="memdesc:ga8c04aa29f158d3544957d5bf9513115a"><td class="mdescLeft">&#160;</td><td class="mdescRight">get member by name  <a href="#ga8c04aa29f158d3544957d5bf9513115a">More...</a><br /></td></tr>
<tr class="separator:ga8c04aa29f158d3544957d5bf9513115a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga62e2d52ab4b1acb0ed5571b7135ee6dd"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_t_r_m_e_m__.html#ga62e2d52ab4b1acb0ed5571b7135ee6dd">STRMEM_TYPE</a>&#160;&#160;&#160;0x0004</td></tr>
<tr class="memdesc:ga62e2d52ab4b1acb0ed5571b7135ee6dd"><td class="mdescLeft">&#160;</td><td class="mdescRight">get member by type.  <a href="#ga62e2d52ab4b1acb0ed5571b7135ee6dd">More...</a><br /></td></tr>
<tr class="separator:ga62e2d52ab4b1acb0ed5571b7135ee6dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0e3a31e8de28a5b68b31fd42d8465048"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_t_r_m_e_m__.html#ga0e3a31e8de28a5b68b31fd42d8465048">STRMEM_SIZE</a>&#160;&#160;&#160;0x0005</td></tr>
<tr class="memdesc:ga0e3a31e8de28a5b68b31fd42d8465048"><td class="mdescLeft">&#160;</td><td class="mdescRight">get member by size.  <a href="#ga0e3a31e8de28a5b68b31fd42d8465048">More...</a><br /></td></tr>
<tr class="separator:ga0e3a31e8de28a5b68b31fd42d8465048"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaecfb7742720049da887ac63077488b74"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaecfb7742720049da887ac63077488b74"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_t_r_m_e_m__.html#gaecfb7742720049da887ac63077488b74">STRMEM_MINS</a>&#160;&#160;&#160;0x0006</td></tr>
<tr class="memdesc:gaecfb7742720049da887ac63077488b74"><td class="mdescLeft">&#160;</td><td class="mdescRight">get smallest member by size. <br /></td></tr>
<tr class="separator:gaecfb7742720049da887ac63077488b74"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga85e977634794b06f003f4827d9df5028"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga85e977634794b06f003f4827d9df5028"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_t_r_m_e_m__.html#ga85e977634794b06f003f4827d9df5028">STRMEM_MAXS</a>&#160;&#160;&#160;0x0007</td></tr>
<tr class="memdesc:ga85e977634794b06f003f4827d9df5028"><td class="mdescLeft">&#160;</td><td class="mdescRight">get biggest member by size. <br /></td></tr>
<tr class="separator:ga85e977634794b06f003f4827d9df5028"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae70e5a781439aef62e61cdfe061f7170"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_t_r_m_e_m__.html#gae70e5a781439aef62e61cdfe061f7170">STRMEM_ANON</a>&#160;&#160;&#160;0x80000000</td></tr>
<tr class="memdesc:gae70e5a781439aef62e61cdfe061f7170"><td class="mdescLeft">&#160;</td><td class="mdescRight">can be combined with <a class="el" href="group___s_t_r_m_e_m__.html#ga8c04aa29f158d3544957d5bf9513115a" title="get member by name ">STRMEM_NAME</a>:  <a href="#gae70e5a781439aef62e61cdfe061f7170">More...</a><br /></td></tr>
<tr class="separator:gae70e5a781439aef62e61cdfe061f7170"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga454bfbfea961d64f7efdea9fa565a18a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga454bfbfea961d64f7efdea9fa565a18a"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_t_r_m_e_m__.html#ga454bfbfea961d64f7efdea9fa565a18a">STRMEM_CASTABLE_TO</a>&#160;&#160;&#160;0x40000000</td></tr>
<tr class="memdesc:ga454bfbfea961d64f7efdea9fa565a18a"><td class="mdescLeft">&#160;</td><td class="mdescRight">can be combined with <a class="el" href="group___s_t_r_m_e_m__.html#ga62e2d52ab4b1acb0ed5571b7135ee6dd" title="get member by type. ">STRMEM_TYPE</a>: member type must be castable to the specified type <br /></td></tr>
<tr class="separator:ga454bfbfea961d64f7efdea9fa565a18a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a class="anchor" id="gafc7e55c621c65b2a81792e39a67d75b2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define STRMEM_OFFSET&#160;&#160;&#160;0x0000</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>get member by offset </p>
<ul>
<li>in: udm-&gt;offset - is a member offset in bits </li>
</ul>

</div>
</div>
<a class="anchor" id="gaad91f2151cfd8e41e7f937287bf18f56"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define STRMEM_INDEX&#160;&#160;&#160;0x0001</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>get member by number </p>
<ul>
<li>in: udm-&gt;offset - is a member number </li>
</ul>

</div>
</div>
<a class="anchor" id="ga0b5ba39c4308bbc445aaa8bfc5315bfd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define STRMEM_AUTO&#160;&#160;&#160;0x0002</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>get member by offset if struct, or get member by index if union </p>
<ul>
<li>nb: union: index is stored in the udm-&gt;offset field!</li>
<li>nb: struct: offset is in bytes (not in bits)! </li>
</ul>

</div>
</div>
<a class="anchor" id="ga8c04aa29f158d3544957d5bf9513115a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define STRMEM_NAME&#160;&#160;&#160;0x0003</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>get member by name </p>
<ul>
<li>in: udm-&gt;name - the desired member name. </li>
</ul>

</div>
</div>
<a class="anchor" id="ga62e2d52ab4b1acb0ed5571b7135ee6dd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define STRMEM_TYPE&#160;&#160;&#160;0x0004</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>get member by type. </p>
<ul>
<li>in: udm-&gt;type - the desired member type. member types are compared with tinfo_t::equals_to() </li>
</ul>

</div>
</div>
<a class="anchor" id="ga0e3a31e8de28a5b68b31fd42d8465048"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define STRMEM_SIZE&#160;&#160;&#160;0x0005</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>get member by size. </p>
<ul>
<li>in: udm-&gt;size - the desired member size. </li>
</ul>

</div>
</div>
<a class="anchor" id="gae70e5a781439aef62e61cdfe061f7170"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define STRMEM_ANON&#160;&#160;&#160;0x80000000</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>can be combined with <a class="el" href="group___s_t_r_m_e_m__.html#ga8c04aa29f158d3544957d5bf9513115a" title="get member by name ">STRMEM_NAME</a>: </p>
<p>look inside anonymous members too. </p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>
